﻿
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> 
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ include file="../language.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title><fmt:message key="i18n.password2vil"/>-<fmt:message key="i18n.title"/></title>
<link rel="shortcut icon" href="../index/favicon.png" />
<link href="../skin/skin1/css/subPage.css" rel="stylesheet">
<script type="text/javascript" src="../scripts/jquery-1.11.0.min.js"></script>
</head>
<body>
<div class="account">
	<!-- <div class="left"></div> -->
    <div class="right" >
	    <div class="login_page">
			<div class="login_box">
            <form action="registerUser!login2.action" method="post" id="my-form">
            	<input type="hidden" name="pageUrl" value="<%=request.getParameter("pageUrl")%>" />
            	<input type="hidden" name="registerUserDTO.loginName" value="${session.loginName}" />
		        <input type="hidden" name="pwdLevel" value="password2" />
		        <table width="100%" border="0" cellspacing="0" cellpadding="0">
		        <tr>
		          <th scope="col" colspan="2" align="left"><fmt:message key="i18n.password2vil"/></th>
		        </tr>
		        <tr>
          		  <td align="center" colspan="2" style="">
          		  	<fmt:message key="i18n.send2Password"/>：<input class="low_text" style="height: 30px;width: 220px;" type="password" id="password2" name="registerUserDTO.password2" id="password"  value="" />
          		  </td>
          		  <!-- <td style="padding-left: 0px;margin-left: 0px;">
          		  	<input class="low_text" style="height: 30px;width: 80%;" type="password" id="password2" name="registerUserDTO.password2" id="password"  value="" />
          		  </td> -->
          		</tr>
          		<tr>
          			<td align="center" colspan="2">
          			<input class="ctrR1BoxAn" type="button" onclick="userLogin('no')" value="<fmt:message key="i18n.submitVil"/>" />
                	</td>
          		</tr>
                </table>
            </form>
	        </div>
	    </div>
    </div>
</div>
<script src="js/jquery.min.js"></script>
<script type="text/javascript" src="../scripts/user/common.js"></script>
<script type="text/javascript" src="../scripts/user/login.js"></script>
      
<script type="text/javascript">
var sessionLoginName = '${session.loginName}';
if(sessionLoginName=='' || sessionLoginName==null){
	alert('System login timeout or not, please login again after this operation(系统超时或未登录，请登录后再进行此操作)!');
	window.parent.location.href="login.jsp";
}

$(function(){
	var _loginName = '${param.loginName}';
	var _error = '${param.error}';
	if(_error=='true'){
		//模态框影响界面按钮的样式加载
		setTimeout(function(){
			alert('交易密码不正确,请重新输入!');
		},1);
	}
	document.onkeydown = function(evt){
		var evt = window.event?window.event:evt;
		if(evt.keyCode==13){
			userLogin('no');
		}
	}
	$('#password2').val('');
});
</script>
</body>
</html>
